﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Name
    {
        刘备 = 1,
        孙权,
        曹操
    }
    enum GuessGame
    {
        石头 = 1,
        剪刀,
        布
    }

    class Class1
    {
        public string npcname;
        public string usename;

        public void check()
        {
            Class1 class1 = new Class1();
            Type type = typeof(Name);
            int e = 1;
            Console.Write("出拳规则：");
            foreach (GuessGame item in System .Enum.GetValues(typeof(GuessGame)))
            {
                Console.Write(e+"."+item+"  ");
                e++;
            }
            Console.WriteLine();
            Console.WriteLine("请选择对方角色：1.刘备 2.孙权 3.曹操");
            int b = Convert.ToInt32(Console.ReadLine());
            class1.npcname = type.GetEnumName(b);
            Console.WriteLine("请输入你的名字");
            class1.usename = Console.ReadLine();
            Console.WriteLine("{0} VS {1} 对战", class1.usename, class1.npcname);
            
        }
        public virtual void npc()
        { }


        public virtual void use()
        { }

    }
}
